<?php
use Phalcon\Di;
return array(
    'limit' => array(
        'label' => '获取数量',
        'error' => '',
        'userOptions' => [],
        'description' => '',
        'widget' => 'Numeric',
        'validate' => [],
        'filter' => array('striptags'),
        'attributes' => array(
            'class' => 'form-control',
        ),
        'required' => true,
    ),
    'commentContentModel' => array(
        'label' => '评论类型',
        'error' => '',
        'description' => '',
        'widget' => 'Selects',
        'options' => Di::getDefault()->getShared('entityManager')->contentModelOptions('comment'),
        'validate' => [],
        'filter' => array('striptags'),
        'attributes' => array(
            'class' => 'form-control',
        ),
    ),
    'sort' => array(
        'label' => '排序规则',
        'error' => '',
        'description' => '以哪种方式排序评论',
        'widget' => 'Select',
        'options' => [
            'hot' => '热门评论',
            'new' => '最近发布',
        ],
        'validate' => [],
        'filter' => array('striptags'),
        'attributes' => array(
            'class' => 'form-control',
        ),
        'required' => true,
    ),
    'subLength' => array(
        'label' => '截取长度',
        'error' => '',
        'userOptions' => array(),
        'description' => '',
        'widget' => 'Numeric',
        'default' => 200,
        'validate' => array(),
        'filter' => array('striptags'),
        'attributes' => array(
            'class' => 'form-control',
        ),
        'required' => true,
    ),
);
